package org.opengraph;

import java.util.List;

import org.opengraph.entities.*;


public class EntityManager {
	public static void main(String[] arg) throws Exception{
		String ac = "120059174683486|2.p7ls7Ig_arghxUC0yQRUTA__.3600.1273446000-580216204|kBWei2DuoxCxU7-o1qsT8cm2z24.";
		User user = User.getUser("mrohad",ac );
		List<Feed> feeds = user.getFeeds(ac);
		for (Feed feed : feeds) {
			System.out.println(feed.getMessage());
			List<Feed> com = feed.getCommentsList();
			for (Feed feed2 : com) 
				System.out.println(feed2.getMessage());
			
		}
		List<User> friends = user.getFriends(ac);
		for (User user2 : friends) {
			System.out.println(user2.getName());
		}
	}
	
}
